import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Tables from '@/components/Tables'
import com from '@/components/com'
import Home from '@/components/Home'
import Login from '@/components/Login'
import Queryrole from '@/components/Queryrole'
import Queryemp from '@/components/Queryemp'
import QueryManager from '@/components/QueryManager'
import Givepower from '@/components/Givepower'
import Changepower from '@/components/Changepower'
import Querydept from '@/components/Querydept'
import Queryallemp from '@/components/Queryallemp'
import Induction from '@/components/Induction'
import Dimissiontoboss from '@/components/Dimissiontoboss'
import Transdepart from '@/components/Transdepart'
import Personalinfro from '@/components/Personalinfro'
import Applytransfer from '@/components/Applytransfer'
import Applydimission from '@/components/Applydimission'
import Dimissiontomger from '@/components/Dimissiontomger'
import Buyer from '@/components/Buyer'
import Transfertoboss from '@/components/Transfertoboss'
import Setmsgatboss from '@/components/Setmsgatboss'
import Purchase_requisition from '@/components/Purchase_requisition.vue'
import Purchase_reqlist from '@/components/Purchase_reqlist.vue'
import Purchase_plan from '@/components/Purchase_plan.vue'
import Purchase_planlist from '@/components/Purchase_planlist.vue'
import Purchase_inquiry from '@/components/Purchase_inquiry.vue'
import Purchase_inquirylist from '@/components/Purchase_inquirylist.vue'
import Purchase_order from '@/components/Purchase_order.vue'
import Purchase_orderlist from '@/components/Purchase_orderlist.vue'

Vue.use(Router)

export default new Router({
	routes: [

		{
			path: '/',
			name: 'login',
			component: Login
		},
		{
			path: '/table',
			name: 'table',
			component: Tables
		},
		{
			path: '/com',
			name: 'com',
			component: com
		},
		{
			path: '/Purchase_requisition',
			name: 'Purchase_requisition',
			component: Purchase_requisition
		},
		{
			path: '/Purchase_reqlist',
			name: 'Purchase_reqlist',
			component: Purchase_reqlist
		},
		{
			path: '/Purchase_plan',
			name: 'Purchase_plan',
			component: Purchase_plan
		},
		{
			path: '/Purchase_planlist',
			name: 'Purchase_planlist',
			component: Purchase_planlist
		},
		{
			path: '/Purchase_inquiry',
			name: 'Purchase_inquiry',
			component: Purchase_inquiry
		},
		{
			path: '/Purchase_inquirylist',
			name: 'Purchase_inquirylist',
			component: Purchase_inquirylist
		},
		{
			path: '/Purchase_order',
			name: 'Purchase_order',
			component: Purchase_order
		},
		{
			path: '/Purchase_orderlist',
			name: 'Purchase_orderlist',
			component: Purchase_orderlist
		},
		{
			path: '/home',
			name: 'home',
			component: Home,
			children: [
				{
					path: '/',
					name: 'HelloWorld',
					component: HelloWorld
				},
				{
					path: 'queryrole',
					name: 'Queryrole',
					component: Queryrole
				},
				{
					path: 'queryemp',
					name: 'Queryemp',
					component: Queryemp
				},
				{
					path: 'querymanager',
					name: 'Querymanager',
					component: QueryManager
				},
				{
					path: 'givepower',
					name: 'givepower',
					component: Givepower
				},
				{
					path: 'changepower',
					name: 'changepower',
					component: Changepower
				},
				{
					path: 'querydept',
					name: 'Querydept',
					component: Querydept
				},
				{
					path: 'queryallemp',
					name: 'queryallemp',
					component: Queryallemp
				},
				{
					path: 'induction',
					name: 'induction',
					component: Induction
				},
				{
					path: 'dimissiontoboss',
					name: 'dimissiontoboss',
					component: Dimissiontoboss
				},
				{
					path: 'transdepart',
					name: 'transdepart',
					component: Transdepart
				},
				{
					path: 'personalinfro',
					name: 'personalinfro',
					component: Personalinfro
				},
				{
					path: 'applytransfer',
					name: 'applytransfer',
					component: Applytransfer
				},
				{
					path: 'applydimission',
					name: 'applydimission',
					component: Applydimission
				},
				{
					path: 'dimissiontomger',
					name: 'dimissiontomger',
					component: Dimissiontomger
				},
				{
					path: 'buyer',
					name: 'buyer',
					component: Buyer
				},
				{
					path: 'transfertoboss',
					name: 'transfertoboss',
					component: Transfertoboss
				},
				{
					path: 'setmsgatboss',
					name: 'setmsgatboss',
					component: Setmsgatboss
				},
			]
		},

	]
})
